<template>
	<view>
		<view class="navigation-bar">
			<view @click="turnBack"><image src="/static/左箭头.png"></image></view><text>选择车辆</text>
		</view>
		<view class="background"></view>
		<view class="card">
			<view class="img">
				<image class="img2" src=""></image>
			</view>
			<view class="vehicle">
				<view>车型：奔驰-GR</view>
				<view>车牌：豫M35486</view>
			</view>
			<view class="select">
				<view class="radio">
					<radio></radio>
				</view>
			</view>
		</view>
		<view class="card">
			<view class="img">
				<image class="img2" src=""></image>
			</view>
			<view class="vehicle">
				<view>车型：奔驰-GR</view>
				<view>车牌：豫M35486</view>
			</view>
			<view class="select">
				<view class="radio">
					<radio></radio>
				</view>
			</view>
		</view>
		<view class="customerService">
			<view class="submit">
				<button @click="confirm">
					<image src="/static/加号.png" mode=""></image>添加车辆
				</button>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {

			}
		},
		methods: {
			turnBack() {
				uni.navigateBack({
					url: "/pages/index/index"
				})
			},
			confirm(){
				uni.navigateTo({
					url:"/packageMaintenance/pages/confirmOrder/confirmOrder"
				})
			}
		}
	}
</script>

<style>
	.navigation-bar {
		position: relative;
		height: 150rpx;
		display: flex;
		align-items: center;
		background-color: #287BF6;
	}

	.navigation-bar>view>image {
		width: 30rpx;
		height: 30rpx;
		margin-left: 30rpx;
	}
	
	.navigation-bar>text {
		color: #FFF;
		margin-right: 40rpx;
		flex-grow: 1;
		text-align: center;
	}
	.background {
		position: absolute;
		background-color: #287BF6;
		width: 100%;
		height: 300rpx;
		z-index: 0;
	}

	.card {
		position: relative;
		margin: 20rpx;
		border-radius: 20px;
		background-color: #FFF;
		display: flex;
	}

	.img2 {
		width: 100rpx;
		height: 100rpx;
		margin: 30rpx;
		background-color: #287BF6;
		border-radius: 30px;
	}

	.vehicle>view:nth-child(1) {
		margin-top: 30rpx;
		font-weight: bold;
		font-size: 40rpx;
	}

	.vehicle>view:nth-child(2) {
		margin-top: 30rpx;
		width: 300rpx;
	}

	.select {
		position: relative;

	}

	.radio {
		position: absolute;
		margin-top: 70rpx;
		margin-left: 120rpx;
	}

	.customerService {
		position: fixed;
		bottom: 0;
		left: 0;
		right: 0;
		background-color: #FFF;
		padding-top: 20rpx;
		padding-bottom: 20rpx;
		display: flex;
		justify-content: space-between;
		align-items: center;
	}

	.submit>button {
		width: 600rpx;
		height: 80rpx;
		line-height: 80rpx;
		border-radius: 40rpx;
		margin: 0 80rpx;
		background-color: #287BF6;
		color: #FFF;
		font-size: 32rpx;
	}

	.submit>button>image {
		line-height: 80rpx;
		margin-right: 20rpx;
		width: 30rpx;
		height: 30rpx;
	}
</style>